package com.xiaoshuidi.cloud.framework.kingdee.config;

import com.xiaoshuidi.cloud.framework.kingdee.core.service.KingdeeService;
import com.xiaoshuidi.cloud.framework.kingdee.core.service.KingdeeServiceImpl;
import com.xiaoshuidi.cloud.framework.kingdee.core.wsdl.confirm.WSSynTransferConfirmBillDataSrvProxy;
import com.xiaoshuidi.cloud.framework.kingdee.core.wsdl.confirm.WSSynTransferConfirmBillDataSrvProxyServiceLocator;
import com.xiaoshuidi.cloud.framework.kingdee.core.wsdl.login.EASLoginProxy;
import com.xiaoshuidi.cloud.framework.kingdee.core.wsdl.login.EASLoginProxyServiceLocator;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

import javax.xml.rpc.ServiceException;

@AutoConfiguration
@EnableConfigurationProperties(KingdeeProperties.class)
public class LeaseKingdeeAutoConfiguration {

    @Bean
    public KingdeeService kingdeeService(KingdeeProperties kingdeeProperty) {
        return new KingdeeServiceImpl(kingdeeProperty);
    }
}
